package com.fary.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.fary.entity.PaymentChannel;
import com.fary.mapper.PaymentChannelMapper;
import com.fary.service.PaymentChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PaymentChannelServiceImpl implements PaymentChannelService {

    @Autowired
    private PaymentChannelMapper paymentChannelMapper;

    @Override

    public PaymentChannel getByChannelIdInfo(String channelId) {
        QueryWrapper<PaymentChannel> paymentChannelDOQueryWrapper = new QueryWrapper<>();
        paymentChannelDOQueryWrapper.eq("CHANNEL_ID", channelId);
        PaymentChannel paymentChannel = paymentChannelMapper.selectOne(paymentChannelDOQueryWrapper);
        return paymentChannel;
    }
}
